<!DOCTYPE HTML>

<html lang="en">

	<head>
		<meta charset='UTF-8' />
		<meta name='generator' content='ecos.b2c' />
		<title></title>
		<meta name='keywords' content='' />
		<meta name='description' content='' />
		<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' />
		<link rel="stylesheet" href="__PUBLIC__/phone/css/gallery.css" />
		<script src="__PUBLIC__/hytn/js/jquery-1.9.1.min.js"></script>
	</head>
	<body style="background-color: #F7F7F8;padding: 0;">
	<form action="{:U('pay/pay')}" method="post" id="paycenter_form">
		<input type="hidden" name="order_number" value="{$order_number}">
		<input type="hidden" name="total_amount" value="{$orderPrice}">
		<div class="full-screen">

			<header style="background: #00a1f2;">
				<div class="a-bar">
					<a href="{:U('cart')}" class="a-back">
						<i class="arr left" style="top: 0px;height: 10px;width: 10px;border-color: #fff;"></i>
					</a>
					<div class="a-name" style="color: white;">
						订单支付
					</div>
				</div>
			</header>

			<div style="background: gainsboro;padding: 10px 20px">
				<span style="font-size:20px;">请支付</span>
				<span style="font-size:20px;float: right;color: red;"><span id="orderPrice">{$orderPrice}</span>元</span>
			</div>

				<div class="section">
					<div class="col2">
						<div class="col">
							订单：<span id="order_number">{$order_number}</span>
						</div>
						<div class="col">
							应付金额：
							<span class="price">￥{$orderPrice}</span>
						</div>
					</div>
				</div>
				<!--付款完成显示 end-->
		 	<div class="section">
    			<table width="100%" class="d-table">
				  <tr>
					 <td class="k">收货人:</td>
					 <td class="v">{$addrInfo.receiver}</td>
				  </tr>
				  <tr>
					 <td class="k">地区:</td>
					 <td class="v">{$addrInfo.province}{$addrInfo.city}{$addrInfo.county}{$addrInfo.town}</td>
				  </tr>
				  <tr>
					 <td class="k">详细地址:</td>
					 <td class="v">{$addrInfo.detailed_address}</td>
				  </tr>
				  <tr>
					 <td class="k">手机:</td>
					 <td class="v">{$addrInfo.phone}</td>
				  </tr>
    			</table>
			</div>
		</div>
		<!--<div class="section" style="padding: 20px 20px;font-size: 20px;text-align: center;" id="">
			支付方式
		</div>-->
		<button type="submit" class="btn btn-confirm" style="width: 80%;margin: 40px auto; background: #fff;height: 40px;font-size: 15px;border: 0;-moz-box-shadow: 5px 5px 2px #888888;-webkit-box-shadow: 5px 5px 2px #888888; /* 老的 Firefox */box-shadow: 5px 5px 2px #888888;">
			<img src="__PUBLIC__/phone/img/zfb.png" alt="" style="height: 40px;"/>
		</button>
		<a href="{:U('Pay/wxjspay')}?orderPrice={$orderPrice}&order_number={$order_number}">
			<div class="btn btn-confirm" style="width: 80%;margin: 40px auto;background: #fff;height: 40px;border: 0;-moz-box-shadow: 5px 5px 2px #888888;-webkit-box-shadow: 5px 5px 2px #888888; /* 老的 Firefox */box-shadow: 5px 5px 2px #888888;">
				<img src="__PUBLIC__/phone/img/wx.png" alt="" style="height: 40px;"/>
			</div>
		</a>
		</form>
		<input type="hidden" id="jsApi">
	</body>
	<script>
	pushHistory();
	   window.addEventListener("popstate", function(e) {
	     window.location = "{:U('index')}";
	   }, false);
	   function pushHistory() {
	     var state = {
	       title: "title",
	       url: "#"
	     };
	     window.history.pushState(state, "title", "#");
	   }
	</script>
	<script>
		addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
		function hideURLbar(){
			window.scrollTo(0,1);
		}
	</script>
</html>